package org.jeecg.modules.demo.soSaleOrder.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.soSaleOrder.entity.SoSaleOrder;
import org.jeecg.modules.demo.soSettlement.entity.SoSettlementVo;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description: so_sale_order
 * @Author: jeecg-boot
 * @Date:   2021-12-06
 * @Version: V1.0
 */
public interface SoSaleOrderMapper extends BaseMapper<SoSaleOrder> {

    SoSaleOrder getBysoNo(String soOrder);
    public SoSaleOrder getBySodHetbh(@Param("mainId") String mainId);

    @InterceptorIgnore(tenantLine = "1")
    public List<SoSaleOrder> getSoOrderList(@Param("parameter") String parameter);
    public String getMaxCode();

    String getTname(String tenantId);

    Date getTdate(String tenantId);


    public Map<String,Double> getXSOrderQuantity(@Param("beginTime") String beginTime, @Param("endTime") String endTime);
    public Map<String,Double>  getXSQualityIQ(@Param("beginTime") String beginTime,@Param("endTime") String endTime);
    public Map<String,Double>  getXSSettlementVolume(@Param("beginTime") String beginTime,@Param("endTime") String endTime);
    public Map<String,Double>  getXSInvoiceQuantity(@Param("beginTime") String beginTime,@Param("endTime") String endTime);

    List<SoSettlementVo> queryYingshou();

    SoSettlementVo queryYingshou1();

    List<SoSettlementVo> queryYingfu();

    SoSettlementVo queryYingfu1();
}
